<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 14-2-7
 * Time: 下午11:04
 */
include('database.class.php');
$id = $_GET['id'];
$rateAdd= new database();
$result = $rateAdd->update('details',$id,'rate','rate+1');
echo $result;
?>